<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <script src="./js/vue.js"></script>
    <script src="https://cdn.bootcdn.net/ajax/libs/vuex/3.2.0/vuex.min.js"></script>
    <title>Document</title>
  </head>
  <body>
    <div id="app">
      <a v-bind:href="url">链接</a>
      <img :src="imgUrl" alt="" />
    </div>
  </body>
  <script>
    var app = new Vue({
      el: "#app",
      data: {
        url: "https://www.baidu.com",
        imgUrl: "https://image.baidu.com"
      }
    })
  </script>
</html>
